﻿#ifndef DATASAVEREAD1_H
#define DATASAVEREAD1_H

#include <QWidget>
#include <QSettings>
#include <QInputDialog>
#include "balser1/balserform1.h"
#include "main/writelog.h"



namespace Ui {
class datasaveread1;
}

class datasaveread1 : public QWidget
{
    Q_OBJECT

public:
    explicit datasaveread1(QWidget *parent = 0);
    ~datasaveread1();
    void getProjectName(QString* currentProjectName);
    void readIniData();                                 //从ini文件读取数据
    void setUiEnable(bool);

signals:
    void sendDataPara(QString currentProjectName);

public slots:
    void saveIniData(int a=0);                          //数据保存到ini文件
    void on_btnAdd_clicked();
    void on_btnRemove_clicked();
    void on_btnOK_clicked();
    void on_btnCancel_clicked();

private:
    QString m_projectName;
    QString m_currentProjectName; //当前工程名
    int m_projectSum;   //项目个数
    int m_currentProjectIndex; //当前工程序号
    QList<QString> m_projectList;    //项目列表

private:
    Ui::datasaveread1 *ui;
};

#endif // DATASAVEREAD1_H
